﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SelectItem {
		private readonly SqlExpression _expression;
		private readonly string _alias;
		public SelectItem(SqlExpression expression, string alias) {
			if (expression==null){
				throw new ArgumentNullException("expression");
			}
			_expression = expression;
			_alias = alias;
		}
		public SqlExpression Expression {
			get {
				return _expression;
			}
		}
		public string ColumnAlias {
			get {
				return _alias;
			}
		}
		/*
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.SelectItem;
			}
		}*/
	}
}
